/**
 * This file is a part of qloudgen-sec. 
 * You can redistribute qloudgen-sec and/or modify it under the terms of the Lesser GNU General Public License version 3. 
 * qloudgen-sec is distributed WITHOUT ANY WARRANTY. 
 *
 * See the Lesser GNU General Public License for more details at http://www.gnu.org/licenses/. 
 **/
package org.redisson;

public class ID implements java.io.Serializable {
	
	private String id = null;
	
	public ID() {
	}

	public ID(String id) {
		this.id = id;
	}
	
	public void setId(String id) {
		this.id = id;
	}
	
	public String getId() {
		return id;
	}
	
	public String toString() {
		return id;
	}
	
	public boolean equals(Object target) {
		if ( target == null ) return false;
		if ( ! ( target instanceof ID ) ) return false;
		if ( id == null && ( ( ID )target ).getId() == null ) return true;
		return id.equals( ( ( ID )target ).getId() );
	}
}